package com.ruoyi.ams.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 维修明细对象 ams_asset_repair_record_detail
 * 
 * @author yfkj
 * @date 2022-05-16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AmsAssetRepairRecordDetail
{
    private static final long serialVersionUID = 1L;
    /** 维修明细表主键 */
    @TableField(exist = true)
    @TableId(type= IdType.AUTO)
    @ApiModelProperty(value =  "${comment}")
    private Long repairRecordDetailId;
    /** 维修信息登记表主键 */
    @Excel(name = "维修信息登记表主键")
    @TableField(exist = true)
    @ApiModelProperty(value =  "维修信息登记表主键")
    private Long repairRecordId;
    /** 维修资产主键 */
    @Excel(name = "维修资产主键")
    @TableField(exist = true)
    @ApiModelProperty(value =  "维修资产主键")
    private Long assetId;
    /** 费用 */
    @Excel(name = "费用")
    @TableField(exist = true)
    @ApiModelProperty(value =  "费用")
    private BigDecimal cost;
    /** 附件 */
    @Excel(name = "附件")
    @TableField(exist = true)
    @ApiModelProperty(value =  "附件")
    private String attachment;
    public static final String REPAIR_RECORD_DETAIL_ID="repair_record_detail_id";
    public static final String REPAIR_RECORD_ID="repair_record_id";
    public static final String ASSET_ID="asset_id";
    public static final String COST="cost";
    public static final String ATTACHMENT="attachment";
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("repairRecordDetailId", getRepairRecordDetailId())
            .append("repairRecordId", getRepairRecordId())
            .append("assetId", getAssetId())
            .append("cost", getCost())
            .append("attachment", getAttachment())
            .toString();
    }
}
